package com.foreknow.demo4;

public class Test2 {
    public static  void fn(int x){
        x  = x * 3;
        //System.out.println(x);
    }
    public static void fn2(int[] x){
        x[0] = 30;
    }
    public static void fn3(String string){
        string = "hello";
    }

    public static void main(String[] args) {
        int a = 10;
        fn(a);
        System.out.println(a);
        int[] arr = {10, 20, 30};
        fn2(arr);
        System.out.println(arr[0]);
        String str = "123";
        fn3(str);
        System.out.println(str);
    }
}
